import axios from "@/config_sp/http"; // 导入http中创建的axios实例
import baseUrl from "@/config_sp/baseUrl"; // 导入接口域名列表

const interfaceapproval = {
  
  /**
   * @api{property} 审批单统计
   */
  getApproveStatisticsView(params) {
    return axios.get(`${baseUrl.cs}/Approve/ApproveStatisticsView`, { params });
  },
  // 集成登录
  getLoginToken(params) {
    return axios.get(`${baseUrl.cs}/ClientUser/token`, { params });
  },

  /**
   * @api{property} 审批单据列表
   */
  GetBillsList(params, data) {
    return axios.post(`${baseUrl.cs}/Approve/ApprovePageList?sign=${data.sign}&timestamp=${data.timestamp}`, params);
  },
};

export default interfaceapproval;
